/*    */ package com.wzh.service.contenturl;
/*    */ 
/*    */ import com.wzh.bean.book.ContentUrl;
/*    */ import com.wzh.service.base.DaoSupport;
/*    */ import java.util.List;
/*    */ import org.springframework.stereotype.Service;
/*    */ import org.springframework.transaction.annotation.Transactional;
/*    */ 
/*    */ @Service
/*    */ @Transactional
/*    */ public class ContentUrlServiceBean extends DaoSupport<ContentUrl>
/*    */   implements ContentUrlService
/*    */ {
/*    */   public void addContentUrls(List<String> urls, Integer siteid)
/*    */   {
/* 19 */     if (urls == null) {
/* 20 */       return;
/*    */     }
/*    */ 
/* 24 */     for (String url : urls)
/*    */     {
/* 26 */       if (find(url) == null)
/*    */       {
/* 29 */         ContentUrl contentUrl = new ContentUrl(url, false);
/* 30 */         contentUrl.setSiteid(siteid);
/*    */ 
/* 32 */         save(contentUrl);
/*    */       }
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\work\apache-tomcat-7.0.55\webapps\ROOT\WEB-INF\classes\
 * Qualified Name:     com.wzh.service.contenturl.ContentUrlServiceBean
 * JD-Core Version:    0.6.1
 */